
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAnxhsYxuuJAOMYw7_kIanghT1nKNLGGr5e0scgHIXHk_Lh_TDkhQiA_SfWXn6hkJM-8QhNPMo6Z744A" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(<%=@location.lat%>, <%=@location.lng%>), 14);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
}
}
//]]>
</script>

<body onLoad="load()" onUnload="GUnload()">
<div id="map" style="width: 650px; height: 200px"></div>
<% title "Common Address" %>

<p>
  <strong>Employee:</strong>
  <%=h @common_address.employee_id %>
</p>
<p>
  <strong>Category:</strong>
  <%=h @common_address.category %>
</p>
<p>
  <strong>Name:</strong>
  <%=h @common_address.name %>
</p>
<p>
  <strong>Desc:</strong>
  <%=h @common_address.desc %>
</p>
<p>
  <strong>Tel:</strong>
  <%=h @common_address.tel %>
</p>
<p>
  <strong>Address:</strong>
  <%=h @common_address.address %>
</p>
<p>
  <strong>Long:</strong>
  <%=h @common_address.long %>
</p>
<p>
  <strong>Lat:</strong>
  <%=h @common_address.lat %>
</p>

<p>
  <%= link_to "Edit", edit_common_address_path(@common_address) %> |
  <%= link_to "Destroy", @common_address, :confirm => 'Are you sure?', :method => :delete %> |
  <%= link_to "View All", common_addresses_path %>
</p>


